<?php

	class Mod_eliminar_giveaway extends CI_Model{

		function __construct()
		{
			parent::__construct();
		}


		function eliminar_give($g_id)
		{
			$query = "DELETE FROM inscricoes WHERE g_id = $g_id";
			$result = $this->db->query($query);

			if($result)
			{
				$query_str1 = "DELETE FROM giveaway WHERE g_id = $g_id";
				$result1 = $this->db->query($query_str1);

				if($result1)
					return true;
				else
					return false;
			}
			else
				return false;
		}

	}

?>